using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter43
{
	/// <summary>
	/// Example04: The Fermi Energy of Gold
	/// Each atom of gold (Au) contributes one free electron 
	/// to the metal. Compute the Fermi energy for gold.
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Solid Au = new L.Solid();
			Au.ElectronConcentration = 5.9E28;
			Au.FindFermiEnergy();
			double ef = Au.FermiEnergy/L.Constant.ElementaryCharge;
            result+=Convert.ToString(ef)+"\r\n";
		}
	}
}
